package model;

public class SC {
    private String cno,sno;
    private Double pscj,kscj,grade;

    public SC(String cno, String sno, Double pscj, Double kscj) {
        this.cno = cno;
        this.sno = sno;
        this.pscj = pscj;
        this.kscj = kscj;
        this.grade =kscj*0.7+pscj*0.3;
    }

    public SC() {

    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public Double getPscj() {
        return pscj;
    }

    public void setPscj(Double pscj) {
        this.pscj = pscj;
    }

    public Double getKscj() {
        return kscj;
    }

    public void setKscj(Double kscj) {
        this.kscj = kscj;
    }

    public Double getGrade() {
        return grade;
    }

    public void setGrade(Double grade) {
        this.grade = grade;
    }

    @java.lang.Override
    public java.lang.String toString() {
        return "SC{" +
                "cno='" + cno + '\'' +
                ", sno='" + sno + '\'' +
                ", pscj=" + pscj +
                ", kscj=" + kscj +
                ", grade=" + grade +
                '}';
    }
}
